#ifndef __TREE_H__
#define __TREE_H__ 

typedef char eleType;

struct TreeNode;

typedef struct ListNode{//树节点组成的链表
    struct TreeNode* data;
    struct ListNode* next;
}ListNode;

typedef struct TreeNode {
    eleType data;
    ListNode* childrenHead;//代表的是一个链表头，负责把当前这个树的所有子节点用链表串起来
}TreeNode;

typedef struct Tree{
    TreeNode* nodes; //所有树节点的集合，用动态数组来存储
    TreeNode* root;
}Tree;

#endif